﻿using Prism.Events;

namespace IntoStationSystem.Global
{
    public class EventRepository
    {
        //消息器，共用
        private static IEventAggregator _eventAggregator;
        public static IEventAggregator EventAggregator
        {
            get
            {
                if (_eventAggregator == null)
                {
                    _eventAggregator = new EventAggregator();
                }
                return _eventAggregator;
            }
        }
    }

    public class Events
    {
        public class ShowPhotoEvent : PubSubEvent<bool> { }
        public class PrintLabelEvent : PubSubEvent<bool> { }
        public class MesChangeRecipeEvent : PubSubEvent<string> { }
        public class ChangeModelEvent : PubSubEvent<int> { }
        public class StartCompletedEvent : PubSubEvent { }
        public class StartFan1Event : PubSubEvent { }
        public class StartFan2Event : PubSubEvent { }
        public class StopFan1Event : PubSubEvent { }
        public class StopFan2Event : PubSubEvent { }
    }
}
